{$header} 
{$menu}
<link rel="stylesheet" type="text/css" href="{$url}css/jquery-ui-1.8.8.custom.css">
<script type="text/javascript" src="{$url}js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="{$url}js/jquery-ui-1.8.8.custom.min.js"></script>
{literal}
<script type="text/javascript">
 $(document).ready(function() {
    					$("#datepicker").datepicker({ dateFormat: "yy-mm-dd" });
    					$("#datepicker2").datepicker({ dateFormat: "yy-mm-dd" });
    					
  				});
</script>
{/literal}				
<div id="content">
    <div id="tab" class="radius-top">Ads&nbsp;&gt;&gt; Edit
      <div class="clear"></div></div>
		{$form_open}             
        <table>
              <tbody>
              <tr>
                  <td align="left">Status&nbsp;<span class="errors">*</span></td>
                  <td class="hotelInfo">
                  <input type="radio"  value="1" name="status" {$sa}>
                  Active<input type="radio" value="0" name="status" {$sd}>Inactive <span class="errors">{$errorstatus}</span></td>
                </tr>
                <tr>
                  <td align="left">Partner&nbsp;<span class="errors">*</span></td>
                  <td class="hotelInfo">
                  <select name="partner">
                  	{$str_partner}
                   </select>
                  
                 <span class="errors">{$errorpartner}</span></td>
                </tr>
                <tr>
                  <td align="left">Name&nbsp;<span class="errors">*</span></td>
                  <td class="hotelInfo"><span class="errors">
                    <input type="text" name="name" value="{$name}" />
                  {$errorname}</span>
                  </td>
                </tr>
                 <tr>
                  <td align="left">Ads</td>
                  <td class="hotelInfo"><label for="txtCategory"></label>
                  http://<input type="text" name="url2" id="txtCategory" value="{$url2}" /><span class="errors">(www.xxxxx.com)</span></td>
                </tr>
                 <tr>
                   <td align="left">Start Date</td>
                   <td class="hotelInfo"><input type="text" name="startdate" id="datepicker"  value="{$startdate}" /></td>
                 </tr>
                 <tr>
                   <td align="left">End Date</td>
                   <td class="hotelInfo"><input type="text" name="enddate" id="datepicker2" value="{$enddate}" /></td>
                 </tr>
                 <tr>
                   <td align="left">Sorting</td>
                   <td class="hotelInfo"><input type="text" name="sorting" id="txtCategory6" value="{$sorting}" /><span class="errors">{$errorsorting}</span></td>
                 </tr>
                 <tr>
                   <td align="left" valign="top">Banner</td>
                   <td class="hotelInfo">{$img}<input type="file" name="pic" id="txtCategory4"  /><span class="errors">{$errorpic}</span></td>
                 </tr>
              </tbody>
            </table>
            <div id="bnt" class="mws-form-row">
                <input type="submit"  name="bntSubmit" class="mws-button green" value="Save"  />
                <input type="button" name="bntSubmit" class="mws-button green" value="Cancel" onClick="window.location='{$url}manage_banner/ads_list';" />
          </div>
		{$form_close}
  </div>
  {$footer}